From 505b1d847cebfce86843dd0c59f62f4e05161921 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 21 May 2024 00:04:54 -0700
Subject: fix(badges): use correct id when hiding

---
 src/routes/user/[user]/badges/+page.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/user/[user]/badges/+page.svelte')

diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte
index 6d34a204..f955240c 100644
--- a/src/routes/user/[user]/badges/+page.svelte
+++ b/src/routes/user/[user]/badges/+page.svelte
@@ -456,7 +456,7 @@
 		if (!selectedBadge && !authorised) return;
 
 		badgesPromise = fetch(
-			`/api/badges?shadowHideBadge=${selectedBadge?.id}&status=${selectedBadge?.shadow_hidden}`,
+			`/api/badges?shadowHideBadge=${selectedBadge?.id}&status=${selectedBadge?.shadow_hidden}&id=${badger.id}`,
 			{
 				method: 'PUT'
 			}
-- 
cgit v1.2.3

